import request from '@/utils/request'

// 添加海报语录至总库
export function add(token, data) {
  return request({
    url: '/poster/ana/add',
    method: 'post',
    params: { token },
    data
  })
}
// 编辑总库海报语录
export function edit(token, data) {
  return request({
    url: '/poster/ana/edit',
    method: 'post',
    params: { token },
    data
  })
}

// 删除共享库海报语录数据
export function del(token, data) {
  return request({
    url: '/poster/ana/delete',
    method: 'post',
    params: { token },
    data
  })
}

// 获取共享库海报语录数据
export function getList(token, data) {
  return request({
    url: '/poster/ana/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 添加海报语录分类
export function add_classify(token, data) {
  return request({
    url: '/poster/ana/add_classify',
    method: 'post',
    params: { token },
    data
  })
}

// 删除海报语录分类
export function delete_classify(data) {
  return request({
    url: '/poster/ana/delete_classify',
    method: 'post',
    params: data
  })
}

// 商家添加海报语录
export function add_merchant(token, data) {
  return request({
    url: '/poster/merchant_ana/add_merchant',
    method: 'post',
    params: { token },
    data
  })
}

export function invoke(token, data) {
  return request({
    url: '/poster/ana/invoke',
    method: 'post',
    params: { token },
    data
  })
}

export function forbidden(token, data) {
  return request({
    url: '/poster/ana/forbidden',
    method: 'post',
    params: { token },
    data
  })
}

export function get_classify_list(token) {
  return request({
    url: '/poster/ana/get_classify_list',
    method: 'post',
    params: { token }
  })
}
// 批量删除
export function batch_delect(token, data) {
  return request({
    url: '/poster/ana/batch_delect',
    method: 'post',
    params: { token },
    data
  })
}

export function excel_add(token, data) {
  return request({
    url: '/poster/ana/excel_add',
    method: 'post',
    params: { token },
    data
  })
}

